package com.atguigu.common.constant;

public class ProductConstant {
    public static final String PRODUCT_UP_INDEX = "my_product";
    public static final Integer PRODUCT_PAGESIZE = 2;
    public enum AttrEnum{
        BASE_ATTR_VALUE(1,"基本属性"),SALE_ATTR_VALUE(0,"销售属性");
        private Integer code;
        private String type;

        AttrEnum(Integer code, String type) {
            this.code = code;
            this.type = type;
        }

        public Integer getCode() {
            return code;
        }

        public String getType() {
            return type;
        }
    }

    public enum ProductStatusEnum{
        NEW_CREATE(0,"新建"),PRODUCT_UP(1,"上架"),PRODUCT_DOWN(2,"下架");
        private Integer code;
        private String type;

        ProductStatusEnum(Integer code, String type) {
            this.code = code;
            this.type = type;
        }

        public Integer getCode() {
            return code;
        }

        public String getType() {
            return type;
        }
    }
}
